// import {request} from 'umi'


import request from "umi-request";

export async function GET(url: string, params: object, options?: { [key: string]: any }) {
    return await request<API.Result>(url, {
        method: 'GET',
        headers: {
            'Content-Type': 'application/json',
        },
        params,
        ...(options || {}),
    });
}
